﻿using System;
using System.Web.UI;

namespace MPBlog.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class AdminLoginBase : Page
    {
        /// <summary>
        /// 登录按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnLoginClick(object sender, EventArgs e)
        {
            Response.Redirect("~/Admin/Default.aspx");
        }
        /// <summary>
        /// 返回当前主题文件夹根目录的绝对路径，以/结尾
        /// </summary>
        public string CurrentThemeAbsoluteRoot(string themeName)
        {
            return Utils.AbsoluteWebRoot + "Admin/Themes/" + themeName + "/";
        }
    }
}